home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / medical / mendelge.cpt / MendelGenetics / MENDELIAN GENETICS I / card_76988.txt < prev    next >
Text File  |  1989-06-13  |  8KB  |  293 lines

  1. -- card: 76988 from stack: in
  2. -- bmap block id: 86976
  3. -- flags: 0000
  4. -- background id: 2665
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0002
  11. -- rect: left=268 top=106 right=128 bottom=367
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: f1
  20.  
  21.  
  22. -- part 2 (field)
  23. -- low flags: 00
  24. -- high flags: 0002
  25. -- rect: left=268 top=133 right=154 bottom=367
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 0
  29. -- font id: 128
  30. -- text size: 10
  31. -- style flags: 256
  32. -- line height: 13
  33. -- part name: f2
  34.  
  35.  
  36. -- part 3 (field)
  37. -- low flags: 00
  38. -- high flags: 0002
  39. -- rect: left=268 top=188 right=210 bottom=367
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 0
  43. -- font id: 3
  44. -- text size: 12
  45. -- style flags: 0
  46. -- line height: 16
  47. -- part name: f3
  48.  
  49.  
  50. -- part 4 (field)
  51. -- low flags: 00
  52. -- high flags: 0002
  53. -- rect: left=268 top=251 right=273 bottom=366
  54. -- title width / last selected line: 0
  55. -- icon id / first selected line: 0 / 0
  56. -- text alignment: 0
  57. -- font id: 3
  58. -- text size: 12
  59. -- style flags: 0
  60. -- line height: 16
  61. -- part name: f4
  62.  
  63.  
  64. -- part 5 (field)
  65. -- low flags: 00
  66. -- high flags: 0002
  67. -- rect: left=268 top=280 right=301 bottom=366
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 0 / 0
  70. -- text alignment: 0
  71. -- font id: 3
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: f5
  76.  
  77.  
  78. -- part 6 (button)
  79. -- low flags: 00
  80. -- high flags: 8003
  81. -- rect: left=323 top=24 right=46 bottom=423
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 0 / 0
  84. -- text alignment: 1
  85. -- font id: 0
  86. -- text size: 12
  87. -- style flags: 0
  88. -- line height: 16
  89. -- part name: RESET
  90. ----- HyperTalk script -----
  91. on mouseUp
  92.   show card field covertwo
  93.   global popno
  94.   put 0 into popno
  95.   delete line 1 of card field effno
  96.   delete line 1 of card field f1
  97.   delete line 1 of card field f2
  98.   delete line 1 of card field f3
  99.   delete line 1 of card field f4
  100.   delete line 1 of card field f5
  101.   delete line 1 of card field f6
  102.   put "PARENTAL" into card field effno
  103.   get the location of card field f1
  104.   click at it
  105. end mouseUp
  106.  
  107.  
  108.  
  109. -- part 7 (button)
  110. -- low flags: 00
  111. -- high flags: 8003
  112. -- rect: left=297 top=221 right=242 bottom=353
  113. -- title width / last selected line: 0
  114. -- icon id / first selected line: 0 / 0
  115. -- text alignment: 1
  116. -- font id: 0
  117. -- text size: 12
  118. -- style flags: 0
  119. -- line height: 16
  120. -- part name: RUN
  121. ----- HyperTalk script -----
  122. on mouseUp
  123.   hide card field coverone
  124.   put 0 into card field f4
  125.   put 0 into card field f5
  126.   global loop
  127.   put the value of (card field f2 / card field f1) into card field f6
  128.   put the value of card field f3 into loop
  129.   repeat (loop) times
  130.     put the random of card field f1 into it
  131.     if it <= (card field f2) then
  132.       add 1 to card field f4
  133.     end if
  134.   end repeat
  135.   put the value of (card field f4 / card field f3) * 100 into card field f5
  136.   show card field coverone
  137.   hide card field covertwo
  138. end mouseUp
  139.  
  140.  
  141.  
  142. -- part 8 (button)
  143. -- low flags: 00
  144. -- high flags: 8003
  145. -- rect: left=379 top=223 right=245 bottom=446
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 0 / 0
  148. -- text alignment: 1
  149. -- font id: 0
  150. -- text size: 12
  151. -- style flags: 0
  152. -- line height: 16
  153. -- part name: REPLACE
  154. ----- HyperTalk script -----
  155. on mouseUp
  156.   show card field covertwo
  157.   global popno
  158.   add 1 to popno
  159.   put the value of (card field f5)  into card field f6
  160.   put the value of (card field f1 *( card field f6 / 100)) into card field f2
  161.   put 0 into card field f4
  162.   put the value of popno into card field effno
  163. end mouseUp
  164.  
  165.  
  166.  
  167. -- part 9 (field)
  168. -- low flags: 00
  169. -- high flags: 0002
  170. -- rect: left=268 top=159 right=181 bottom=366
  171. -- title width / last selected line: 0
  172. -- icon id / first selected line: 0 / 0
  173. -- text alignment: 0
  174. -- font id: 3
  175. -- text size: 12
  176. -- style flags: 0
  177. -- line height: 16
  178. -- part name: f6
  179.  
  180.  
  181. -- part 10 (button)
  182. -- low flags: 00
  183. -- high flags: 8003
  184. -- rect: left=205 top=315 right=337 bottom=256
  185. -- title width / last selected line: 0
  186. -- icon id / first selected line: 0 / 0
  187. -- text alignment: 1
  188. -- font id: 0
  189. -- text size: 12
  190. -- style flags: 0
  191. -- line height: 16
  192. -- part name: NEXT
  193. ----- HyperTalk script -----
  194. on mouseUp
  195.   go to next card
  196. end mouseUp
  197.  
  198.  
  199.  
  200. -- part 11 (button)
  201. -- low flags: 00
  202. -- high flags: 8003
  203. -- rect: left=149 top=314 right=337 bottom=199
  204. -- title width / last selected line: 0
  205. -- icon id / first selected line: 0 / 0
  206. -- text alignment: 1
  207. -- font id: 0
  208. -- text size: 12
  209. -- style flags: 0
  210. -- line height: 16
  211. -- part name: PREV.
  212. ----- HyperTalk script -----
  213. on mouseUp
  214.   go back
  215. end mouseUp
  216.  
  217.  
  218.  
  219. -- part 12 (field)
  220. -- low flags: 00
  221. -- high flags: 0002
  222. -- rect: left=410 top=69 right=92 bottom=496
  223. -- title width / last selected line: 0
  224. -- icon id / first selected line: 0 / 0
  225. -- text alignment: 0
  226. -- font id: 128
  227. -- text size: 10
  228. -- style flags: 0
  229. -- line height: 13
  230. -- part name: EFFNO
  231.  
  232.  
  233. -- part 13 (field)
  234. -- low flags: 00
  235. -- high flags: 0001
  236. -- rect: left=277 top=308 right=321 bottom=350
  237. -- title width / last selected line: 0
  238. -- icon id / first selected line: 0 / 0
  239. -- text alignment: 0
  240. -- font id: 3
  241. -- text size: 12
  242. -- style flags: 0
  243. -- line height: 16
  244. -- part name: COVERONE
  245.  
  246.  
  247. -- part 14 (field)
  248. -- low flags: 00
  249. -- high flags: 0001
  250. -- rect: left=277 top=322 right=335 bottom=350
  251. -- title width / last selected line: 0
  252. -- icon id / first selected line: 0 / 0
  253. -- text alignment: 0
  254. -- font id: 3
  255. -- text size: 12
  256. -- style flags: 0
  257. -- line height: 16
  258. -- part name: COVERTWO
  259.  
  260.  
  261. -- part contents for background part 1
  262. ----- text -----
  263. GENETIC DRIFT
  264.  
  265. -- part contents for background part 2
  266. ----- text -----
  267. Hardy-Weinberg functions work best with large populations in which all the members mate among themselves to produce the next generation. However, if only a few members are involved in producing a new generation often dramatic shifts in gene frequencies can occur. For example, suppose two individuals were selected from a population (in which a particular gene was phenotypically displayed by 10 individuals) to start a new generation.  The gene in question will be represented in the sample group of two with a frequency of either 100%, 50% or not at all. Thus its frequency in future generations will be greatly altered from that in the original population. In this exercise, you can take a population of any size, enter the number of individuals displaying a particular gene and the size of the mating group that will produce the next generation. By clicking on the RUN button you will randomly select the individuals in that mating group. At the completion of the run, clicking on the REPLACE button will build the next generation to the size of the original population with the frequency of the gene in question a function of its value in the mating group. Thus, the number of individuals displaying the specific gene (the bold number) will change. Click a second time on the RUN button to select a second sample to produce another generation. Some suggested figures are listed below for the original data input. Use them to see how gene flow varies as a function of population size and sample size.
  268.  
  269. Pop. Size   Sample Size   No. Indiv.
  270. 100               10               7
  271. 1000              10               7
  272. 10000             10               7
  273. 100               20               7
  274. 1000              20               7
  275. 10000             20               7
  276. 1000              100              7
  277. 1000              200              7
  278. 1000              300              7
  279. 1000              400              7
  280. 1000              600              7
  281. 1000              800              7
  282. 1000             1000              7
  283.  
  284. Generally, a trend should be established with these runs suggesting that gene frequency stability is a function of what? Record your data for each run and then flip to the next card where a graphing program will allow you to produce a visual display of the changing gene frequencies. Note that in some situations, the small mating group will fail to contain the gene in question. If this occurs, the frequency of the gene in the next generation will drop to 0 and you can terminate your run.
  285.  
  286.  
  287. -- part contents for background part 8
  288. ----- text -----
  289. 60
  290.  
  291. -- part contents for card part 12
  292. ----- text -----
  293. PARENTAL